<?php

namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class SeckillGood extends Model
{
	use HasDateTimeFormatter;
	use SoftDeletes;
	
	protected $table = 'seckillGoods';

	
	//秒杀商品连接商品
	public function goodsTime()
	{
		return $this->hasMany(GoodsConfig::class, 'id', 'time_slot');
	}

}
